package com.c.controller;

import com.c.pojo.dto.UserDto;
import com.c.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bysun
 */
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping("/getUser")
    public UserDto getUser(Integer id) {
        return userService.getUser(id);
    }
}
